import Vue from 'vue'
import App from './App.vue'
import router from './router'
import { 
  Button,
  Cell, 
  CellGroup,
  Grid, 
  GridItem,
  Tabbar, 
  TabbarItem,
  NavBar,
  List,
  Popup,
  Toast,
  Picker,
  PullRefresh,
  Empty,
  Loading
} from 'vant'
import 'vant/lib/index.css'
import 'amfe-flexible'

// 注册 Vant 组件
Vue.use(Button)
Vue.use(Cell)
Vue.use(CellGroup)
Vue.use(Grid)
Vue.use(GridItem)
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(NavBar)
Vue.use(List)
Vue.use(Popup)
Vue.use(Toast)
Vue.use(Picker)
Vue.use(PullRefresh)
Vue.use(Empty)
Vue.use(Loading)

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app') 